addMessage

Adds a message for display by this notification. Convenience call for addMessage.

Return

this for method chaining

See also


Adds a Message for display in this notification.

Return

this object for method chaining

Parameters

message

The Message to be displayed


Deprecated

Use addMessage or addMessage

Adds a message for display by this notification. Convenience call for a simple Message in addMessage

Return

this object for method chaining

Parameters

text

A CharSequence to be displayed as the message content

timestamp

Time at which the message arrived in ms since Unix epoch

sender

A CharSequence to be used for displaying the name of the sender. Should be null for messages by the current user, in which case the platform will insert getUserDisplayName. Should be unique amongst all individuals in the conversation, and should be consistent during re-posts of the notification.

See also